
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/touchjs/0.2.14/touch.min.js"></script>
<script src="pack.js"></script>
<div style="position:relative;width: 100%;overflow: hidden;border: 1px dashed #ff0000;">  
  <img id="targetObj" style="position:relative;transform-origin:center" src="https://gitee.com/alsum/HUBUMap/raw/master/v4.5/v45compress.svg" />  
</div>
<script>
    var $targetObj = $('#targetObj');  
//初始化设置  
cat.touchjs.init($targetObj, function (left, top, scale, rotate) {});  
//初始化拖动手势（不需要就注释掉）  
cat.touchjs.drag($targetObj, function (left, top) { });  
//初始化缩放手势（不需要就注释掉）  
cat.touchjs.scale($targetObj, function (scale) { });  
//初始化旋转手势（不需要就注释掉）  
//cat.touchjs.rotate($targetObj, function (rotate) { });  
</script>